import json

try:
    with open('three-domain_java_kg_fixed.json', 'r', encoding='utf-8') as f:
        data = json.load(f)
    print("JSON文件解析成功！")
    print(f"节点数量: {len(data['nodes'])}")
    print(f"边数量: {len(data['edges'])}")
except json.JSONDecodeError as e:
    print(f"JSON解析错误: {e}")
except Exception as e:
    print(f"其他错误: {e}")